/*
 * Copyright 2019-2025 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * https://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.iiifi.kite.alarm.event;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 服务 异常 事件
 *
 * @author kite@iiifi.com 花朝
 */
@Data
public class KiteErrorEvent implements Serializable {
    /**
     * 应用名
     */
    private String appName;
    /**
     * 环境
     */
    private String env;
    /**
     * 远程ip 主机名
     */
    private String remoteHost;
    /**
     * 请求方法名
     */
    private String requestMethod;
    /**
     * 请求url
     */
    private String requestUrl;
    /**
     * 堆栈信息
     */
    private String stackTrace;
    /**
     * 异常名
     */
    private String exceptionName;
    /**
     * 异常消息
     */
    private String message;
    /**
     * 类名
     */
    private String className;
    /**
     * 文件名
     */
    private String fileName;
    /**
     * 方法名
     */
    private String methodName;
    /**
     * 代码行数
     */
    private Integer lineNumber;
    /**
     * 异常时间
     */
    private LocalDateTime createdAt;
}
